package com.huang.strategic;

import java.math.BigDecimal;

/**
 * <p>收银软件实体类</p>
 *
 * @author aneng huang
 * @since 2020-10-27 14:57:13
 */
public class Cashier {

    /** 商品名称 **/
    private String tradeName;
    /** 单价 **/
    private BigDecimal unitPrice;
    /** 数量 **/
    private int num;
    /** 打折 **/
    private float discount;

    public Cashier(){}
    public Cashier(String tradeName, BigDecimal unitPrice, int num, float discount) {
        this.tradeName = tradeName;
        this.unitPrice = unitPrice;
        this.num = num;
        this.discount = discount;
    }

    public String getTradeName() {
        return tradeName;
    }

    public void setTradeName(String tradeName) {
        this.tradeName = tradeName;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public float getDiscount() {
        return discount;
    }

    public void setDiscount(float discount) {
        this.discount = discount;
    }
}
